package net.sevear.chaos.vo
{
	import flash.utils.Dictionary;

	public class ChaosErrMsgConfig
	{
		public static const LOGIN_WITHOUT_FULL_INFO:int             = 1001;
		public static const LOGIN_WITHOUT_VERSION:int               = 1007;
		
		public static const OP_CONTACTS_WITHOUT_OP:int 				= 3001;
		public static const DELETE_NONE_CONTACT_ITEMS:int 			= 3002; 
		public static const ADD_NONE_EXIST_CONTACT_ITEMS:int 		= 3003;
		public static const ADD_EXCEED_MAX:int 						= 3004;
		public static const ADD_HASADDED_ITEM:int               	= 3005;
		public static const ADD_USERS_WITH_SAME_NAME :int       	= 3006;
		
		public static const CLIENT_VERSION_TOO_OLD:int              = 4001;
		
		public var ERR_MSG:Dictionary  = new Dictionary();
		
		private static var instance:ChaosErrMsgConfig;
		public static function getInstance():ChaosErrMsgConfig{
			if(instance == null){
				instance = new ChaosErrMsgConfig();
			}
			return instance;
		}
		
		public function ChaosErrMsgConfig()
		{
			ERR_MSG[LOGIN_WITHOUT_FULL_INFO] = "登录Chaos失败，缺少用户信息";
			ERR_MSG[LOGIN_WITHOUT_VERSION] = "登录Chaos失败，缺少客户端版本信息";
			ERR_MSG[CLIENT_VERSION_TOO_OLD] = "DouChaos版本过低，请去http://code.google.com/p/douchaos/downloads/list下载最新客户端";
			
			ERR_MSG[OP_CONTACTS_WITHOUT_OP] 		= "操作推荐对象列表需要登录Chaos";
			ERR_MSG[DELETE_NONE_CONTACT_ITEMS] 		= "删除出错";
			ERR_MSG[ADD_EXCEED_MAX]					= "添加超出最大好友数了";
			ERR_MSG[ADD_HASADDED_ITEM]				= "这个人已经是你的好友了，无需添加";
			ERR_MSG[ADD_NONE_EXIST_CONTACT_ITEMS]   = "添加未登录过DouChaos的用户";
			ERR_MSG[ADD_USERS_WITH_SAME_NAME]		= "请确定你要添加的某一个用户";
		}
	}
}